<?php
namespace Model;
use Think\Model;
    class LinkModel extends Model {
        
        protected $_validate = array(
            //不为空验证
            array('link_name','require','名称不能为空'),
            
            array('link_sort','number','名称不能为空'),
            
            //长度验证
            array('link_name','1,20','名称长度在1~20',0,'length'),
            array('link_address','1,250','地址长度在1~250',2,'length'),
        );
        
}